package com.ruoyi.house.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.house.domain.JrRentInstallmentEntity;
import com.ruoyi.house.dto.request.ContractRequestDTO;
import com.ruoyi.house.dto.response.ContractResponseDTO;
import javafx.scene.control.Pagination;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 房租分期申请 Mapper 接口
 * </p>
 *
 * @author liufeng
 * @since 2018-04-16
 */
@Mapper
public interface JrRentInstallmentMapper extends BaseMapper<JrRentInstallmentEntity> {
	
	 List<ContractResponseDTO> findByContract(Pagination pagination, ContractRequestDTO dto);

	JrRentInstallmentEntity getRentInstallmentNo(Long id);

	JrRentInstallmentEntity getRentInstallmentByNo(String no);

	void updateByContractId(JrRentInstallmentEntity jrRentEntity);

	JrRentInstallmentEntity findTimeList(Integer businessId);
	
}
